//
//  DSZSuningFamillyTableViewCell.m
//  7.13苏宁框架
//
//  Created by app05 on 15/7/23.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZSuningFamillyTableViewCell.h"
#import "DSZSuNJZModel.h"

@interface DSZSuningFamillyTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImg;
@property (weak, nonatomic) IBOutlet UILabel *titleLabelOne;
@property (weak, nonatomic) IBOutlet UILabel *titleLabelTwo;
-(IBAction)downloadBtn:(id)sender;
@end
@implementation DSZSuningFamillyTableViewCell

+(id)header
{
    return [[NSBundle mainBundle]loadNibNamed:@"DSZSuningFamillyTableViewCell" owner:nil options:nil][0];
}
-(void)setModel:(DSZSuNJZModel *)model
{
    _model=model;
    self.iconImg.image=[UIImage imageNamed:model.icon];
    self.titleLabelOne.text=model.name;
    self.titleLabelTwo.text=model.description1;
    
}

-(IBAction)downloadBtn:(id)sender
{
    if ([self.delegate respondsToSelector:@selector(famillyDownload)]) {
        [self.delegate famillyDownload];
    }
}

@end
